{extend name="layout" /}
{block name="title"}附件设置{/block}
{block name="content"}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">附件设置</div>
                <div class="layui-card-body" pad15>
                    <div class="layui-form" wid100 lay-filter="">
                        <div class="layui-form-item">
                            <label class="layui-form-label">最大同时上传文件数</label>
                            <div class="layui-input-block">
                                <input type="text" name="max_files" value="{$value.max_files}" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">多文件上传时,用户能最大同时上传文件数,默认20个</div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">文件分块上传分块大小</label>
                            <div class="layui-input-block">
                                <input type="text" name="chunk_size" value="{$value.chunk_size}" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">文件上传采用分块上传,文件分块大小默认512KB,可以根据服务器最大上传限制设置此数值</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">图片文件</label>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[image][upload_max_filesize]" lay-verify="url" value="{$value.upload_max_filesize}"
                                       class="layui-input" placeholder="允许上传大小KB,1M=1024KB">
                            </div>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[image][extensions]" lay-verify="url" value="{$value.extensions}"
                                       class="layui-input" placeholder="扩展名,以英文逗号分隔">
                            </div>
                            <div class="layui-form-mid layui-word-aux">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为jpg,jpeg,png,gif,bmp</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">视频文件</label>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[video][upload_max_filesize]" lay-verify="url" value="{$value.upload_max_filesize}"
                                       class="layui-input" placeholder="允许上传大小KB,1M=1024KB">
                            </div>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[video][extensions]" lay-verify="url" value="{$value.extensions}"
                                       class="layui-input" placeholder="扩展名,以英文逗号分隔">
                            </div>
                            <div class="layui-form-mid layui-word-aux">允许上传大小默认为102400KB,1M=1024KB，允许上传格式默认为mp4,avi,wmv,rm,rmvb,mkv</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">音频文件</label>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[audio][upload_max_filesize]" lay-verify="url" value="{$value.upload_max_filesize}"
                                       class="layui-input" placeholder="允许上传大小KB,1M=1024KB">
                            </div>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[audio][extensions]" lay-verify="url" value="{$value.extensions}"
                                       class="layui-input" placeholder="扩展名,以英文逗号分隔">
                            </div>
                            <div class="layui-form-mid layui-word-aux">允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为mp3,wma,wav</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">附件</label>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[file][upload_max_filesize]" lay-verify="url" value="{$value.upload_max_filesize}"
                                       class="layui-input" placeholder="允许上传大小KB,1M=1024KB">
                            </div>
                            <div class="layui-input-block">
                                <input type="text" name="file_types[file][extensions]" lay-verify="url" value="{$value.extensions}"
                                       class="layui-input" placeholder="扩展名,以英文逗号分隔">
                            </div>
                            <div class="layui-form-mid layui-word-aux">PHP上传限制:允许上传大小默认为10240KB,1M=1024KB，允许上传格式默认为除以上文档类型以外的其它常用文件,如：txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar</div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="id" value="{$value.id}">
                                <button class="layui-btn" lay-submit lay-filter="set_upload">确认保存</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="module"}'set'{/block}
